package com.multipledatasource.web.controller;

import com.alibaba.fastjson.JSONObject;
import com.multipledatasource.web.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    TestService testService;

    @RequestMapping("addOrder")
    public JSONObject addOrder(@RequestBody JSONObject jsonObject){
        return testService.addOrder(jsonObject);
    }
}
